<!-- 弹窗提示领取卡券 --> 
<div ng-if="pagedata.coupon_wait.id" class="popup" id="show_card">
	<div class="popup-body">
    <div class="popup-center" style="width:80%;height:18rem;background:url({{tomedia(pagedata.coupon_wait.sendimage) || '../core/resource/images/h5game/card.png'}}) no-repeat;background-size:100% 100%;text-align:center;">
		<div class="fui-page-title" style="font-size:0.7rem;color:#fff;margin-top:8rem">{{pagedata.coupon_wait.sendtitle || '恭喜您获得一张优惠券'}}</div>
		<div class="fui-page-title" style="color:#efe502;margin-top:0rem;font-size:0.65rem">{{pagedata.coupon_wait.typetitle || '一个新手礼包'}}</div>
		<div class="fui-page-title bold" style="color:red;font-size:1.2rem;margin-left:-2.8rem;margin-top:0.4rem">{{pagedata.coupon_wait.fee || '100'}}</div>
		<a class='block' style="bottom:0.5rem;color:#fff" ng-click="pagedata.access_json('jy_weishop/coupon.give//id='+pagedata.coupon_wait.id)">点击领取</a>
		<i class="closed icon icon-cuowu" onclick="$('#show_card').hide()"></i>
	</div>
	</div>
</div>
<div ng-if="pagedata.coupon_hd" class="popup" id="show_card">
	<div class="popup-body">
    <div class="popup-center" style="width:80%;height:18rem;background:url({{tomedia(pagedata.coupon_hd.sendimage) || '../core/resource/images/h5game/card.png'}}) no-repeat;background-size:100% 100%;text-align:center;">
		<div class="fui-page-title" style="font-size:0.7rem;color:#fff;margin-top:8rem">{{pagedata.coupon_hd.sendtitle || '恭喜您获得一张优惠券'}}</div>
		<a class='block' ng-click="pagedata.access_json('jy_weishop/coupon.myindex/')">点击查看</a>
		<i class="closed icon icon-cuowu" onclick="$('#show_card').hide()"></i>
	</div>
	</div>
</div>
<script>
scope.pagedata.access_json=function(url){
	$('#show_card').modal('hide');
	scope.access_json(url);
}
</script>